//
//  CTMediator+A.m
//  ZHCTMediatorDemo
//
//  Created by 赵宏亚 on 2019/8/12.
//  Copyright © 2019 Arthur. All rights reserved.
//

#import "CTMediator+A.h"

@implementation CTMediator (A)

- (UIViewController *)categoryWithAction:(NSString *)name WithCallBack:(void(^)(NSString *result))callback {
    
    NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
    params[@"callback"] = callback;
    return [self performTarget:@"A" action:name params:params shouldCacheTarget:NO];
}

- (UIViewController *)categoryWithAction:(NSString *)name param:(NSDictionary *)parma {
    
    NSLog(@"name === %@",parma[@"name"]);
    return [self performTarget:@"A" action:name params:parma shouldCacheTarget:NO];
}


@end
